package van.planifolia.singleton;

/**
 * Created by Intellij IDEA<br>
 *
 * @author Planifolia.Van
 * @version 1.0
 * @date 2022/11/7 18:33
 */
public class LazyMan {

    private static volatile LazyMan bean;
    private LazyMan(){};
    public LazyMan getBean(){
        if(bean==null){
            synchronized(LazyMan.class){
                if(bean==null){
                    bean = new LazyMan();
                }
            }
        }
        return bean;
    }
}
